package com.bjtu.laorenyouhao.guanliyuan.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bjtu.common.utils.PageUtils;
import com.bjtu.common.utils.Query;

import com.bjtu.laorenyouhao.guanliyuan.dao.GuanliyuanInfoDao;
import com.bjtu.laorenyouhao.guanliyuan.entity.GuanliyuanInfoEntity;
import com.bjtu.laorenyouhao.guanliyuan.service.GuanliyuanInfoService;


@Service("guanliyuanInfoService")
public class GuanliyuanInfoServiceImpl extends ServiceImpl<GuanliyuanInfoDao, GuanliyuanInfoEntity> implements GuanliyuanInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GuanliyuanInfoEntity> page = this.page(
                new Query<GuanliyuanInfoEntity>().getPage(params),
                new QueryWrapper<GuanliyuanInfoEntity>()
        );

        return new PageUtils(page);
    }

}